﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using DataAnnotationsExtensions;

namespace KpBusiness.Model
{
    public abstract class Person
    {
        [Key]
        public virtual UserInformation UserInformation { get; set; }
        
        
        [DisplayName("First Name")]
        [StringLength(50,ErrorMessage="You Have Crossed Max Limit ")] 
        [Required(ErrorMessage = "Please Provide First Name")]
        public virtual string Fname { get; set; }
        
        [DisplayName("Last Name")]
        [StringLength(50, ErrorMessage = "You Have Crossed Max Limit ")] 
        [Required(ErrorMessage = "Please Provide Last Name")]
        public virtual string Lname { get; set; }


        [DisplayName("Mobile")]
       [StringLength(10, ErrorMessage = "You Have Crossed Max Limit ")] 
          
        [Required(ErrorMessage = "Please Provide Mobile")]
        public virtual string Mobile { get; set; }

        [DisplayName("Email Id")]
       [StringLength(50, ErrorMessage = "You Have Crossed Max Limit ")] 
        [Email]
        [Required(ErrorMessage = "Please Provide Email Id")]
       
        
        public virtual string EmailId { get; set; }
        

        [DisplayName("Last Update Date")]
        public virtual DateTime LastUpdatedDate { get; set; }
         [DisplayName("Last Updated User")]
        public virtual string LastUpdatedUser { get; set; }

        
      

    }
}
